package com.zxy.ziems.server.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 设备测量数据
 *
 * @author 10348359
 * @create 2024-02-28 0:33
 */
@Data
@TableName("t_device_measure_data")
public class DeviceMeasureData extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 设备ID
     */
    @TableField(exist = false)
    private String deviceCode;

    @TableField(exist = false)
    private String deviceName;

    /**
     * 测量数据类型ID
     */
    private String dataTypeId;
    /**
     * 测量值
     */
    private BigDecimal measureValue;

    /**
     * 测量时间
     */
    private LocalDateTime measureTime;
    /**
     * 单位
     */
    private String unitId;

}
